import {defineStore} from "pinia";
import {ref} from "vue";
const useCartInfoStore = defineStore('cartInfo',()=>{
    //定义状态相关的内容
    const cartInfo = ref([])

    const SetCart = (newInfo)=>{
        cartInfo.value=newInfo
    }

    return {cartInfo,SetCart}

},{persist:true})

export default useCartInfoStore